<?php
class Controller_index extends Controller_Base 
{
	
	# Index action
	public function index( $_0 = NULL )
	{
		# Load the main layout for this action
		$this->DF['load']->Core ( 'template', 'layout', 'layout' );
		
		$this->DF['layout']->set ( 'page_title', WEBSITE_TITLE );
		
		$this->DF['layout']->set ( 'body', 'Hello, World! - from DevFly' );
		
		$this->DF['layout']->set ( 'header', $this->pageHeader ( ) );
		
		# Print the layout
		echo $this->DF['layout']->fetch ( );

	}
	
	# Hello World action
	function hello ( $_0 = NULL )
	{
		if ( _DEBUG_ )
		{
			# Printing the method arguments for debugging
			echo $this->DF['common']->pre ( print_r ( $_0, TRUE ) );
		}
		
		
		$this->DF['tpl']->set ( 'name', "Foo" );
		
		$this->DF['tpl']->show ( 'hello' );
		
	}
	
}
?>